// 检测封装的db函数

// 1. 加载自定义的 db 模块
const db = require('./db');

// 2. 调用db函数，进行测试

// let sql = 'select * from student';
// let sql = 'delete from student where id>4 and id<8';
// let sql = 'update student set username="于钥龙", age=18 where id=4';
let sql = 'insert into student set username="老汤", age=25, sex="男"';
db(sql, (err, result) => {
  if (err) throw err;
  console.log(result);
});